package com.chance.cc.crawler.prod.command.trigger.domain.news.gongyishibao;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.news.gongyishibao.searchKw.GongYiShiBaoSearchKwTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2021/6/23 18:34
 * @Description
 *
 **/
public class GongYiShiBaoCommonCrawlerScheduleTrigger extends CommonCrawlerSchedulerTrigger {
    public static void main(String[] args) {
        publishSearchKwTraceCrawlerScheduleTriggerInfo();
    }

    public static void publishSearchKwTraceCrawlerScheduleTriggerInfo(){
        CrawlerJob crawlerJob = GongYiShiBaoSearchKwTraceCrawlerSchedulerJob.crawlerSchedulejob();

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                GongYiShiBaoSearchKwTraceCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                "0 10 2 * * ?",
                "公益时报关键词每天凌晨2:10回溯七天"
        );
    }
}
